package com.fengwk.support.function;

import java.io.Serializable;

/**
 * 引用
 * 
 * @author fengwk
 *
 * @param <T>
 */
public class Ref<T> implements Serializable {

	private static final long serialVersionUID = -6322335514497964337L;
	
	public volatile T value;
	
	public Ref() {}
	
	public Ref(T value) {
		this.value = value;
	}
	
	public static <T> Ref<T> of(T value) {
        return new Ref<T>(value);
    }
	
}
